<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<head>
<title>Market place</title>
</head>
<body>
	<ui:composition template="/templates/adminTemplate.xhtml">
		<ui:define name="content">
			<f:event listener="#{purchaseController.init}"
				type="preRenderComponent"></f:event>

			<div id="sideBarLeft">
				<p:scrollPanel mode="native"  style="font-size:0.9em">
					<h:form prependId="false" id="listForm">
						<ui:include src="/components/admin/purchase/list.xhtml" />
					</h:form>
				</p:scrollPanel>
			</div>
			<div id="center">
				<p:scrollPanel mode="native" style="font-size:0.9em">
					<h:form prependId="false" id="detailForm">
						<ui:include
							src="/components/admin/purchase/purchaseInputPanel.xhtml" />
					</h:form>
				</p:scrollPanel>
			</div>

			<h:form id="dialogForm">
				<ui:include
					src="/components/admin/purchase/chooseSupplierDialog.xhtml" />
				<ui:include src="/components/admin/purchase/addProductsDialog.xhtml" />
				<ui:include
					src="/components/admin/purchase/purchaseDetailEditDialog.xhtml" />
				<ui:include src="/components/admin/purchase/payDialog.xhtml" />
			</h:form>
		</ui:define>

	</ui:composition>
</body>
</html>